package com.bachongLightNovel.model.pojo.works;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 小说详情信息实体类
 * @author vermouth
 */
@Data
public class NovelDetails {

    //订单id过长 ，返回给前端时可能会发生精度丢失的问题，这里转换成字符串返回
    @JsonFormat(shape =JsonFormat.Shape.STRING)
    private Long id;

    @JsonFormat(shape =JsonFormat.Shape.STRING)
    private Long novelId;
    private String title;
    private String content;
    private LocalDateTime createTime;
    private Integer sorted;
}
